function setRem() {
  const htmlWidth = document.body && document.body.offsetWidth
  const htmlEle = document.getElementsByTagName('html')[0]

htmlEle.style.fontSize = htmlWidth ? (htmlWidth / 750*16 + 'px') : '16px'
}

export {
  setRem
}